from data002.Page.Page import Page
from selenium.webdriver.common.by import By
class Page1(Page):
    # 点击新闻
    mnav = (By.LINK_TEXT,'新闻')
    def mnav01(self):
        self.click(self.mnav)
    # 输入内容
    siptwr = (By.ID,'s_ipt_wr')
    def siptwr01(self):
        self.send_keys(self.siptwr,'中国式现代化是走和平发展道路的现代化')
    # 点击百度一下
    sbtnwr = (By.ID,'s_btn_wr')
    def sbtnwr01(self):
        self.click(self.sbtnwr)
    def text_casr_baidu_01(self):
        self.url_open('https://www.baidu.com/')
        self.implicitly(5)
        self.mnav01()
        self.sellp(2)
        self.siptwr01()
        self.sellp(2)
        self.sbtnwr01()
        self.sellp(5)



